package zzzEclipseLink;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import dao.CustomerDao;
import po.Customers;

public class TestDao {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		CustomerDao cd = context.getBean(CustomerDao.class);
		Customers c = new Customers();
		c.setCname("ttt1");
		c.setSex(true);
		cd.addCustomer(c);
	}

}
